from model.uml_element import UmlElement


class UmlType(UmlElement):
    """
    the type of a property to reference a predefined type

    Args:
        UmlElement (_type_): _description_
    """

    def __init__(self) -> None:
        super().__init__()
        self.href: str = ""

    def to_json(self) -> dict[str, object]:
        json: dict = super().to_json()
        json["href"] = self.href

        return json
